package com.ruoyi.passengers.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠券
对象 coupon
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
public class Coupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠券ID */
    private Long couponId;

    /** 优惠券名称 */
    @Excel(name = "优惠券名称")
    private String couponName;

    /** 优惠券类型 */
    @Excel(name = "优惠券类型")
    private Long discountType;

    /** 满减卷满额 */
    @Excel(name = "满减卷满额")
    private BigDecimal fullAmount;

    /** 满减券减额 */
    @Excel(name = "满减券减额")
    private BigDecimal reduceAmount;

    /** 折扣券折扣 */
    @Excel(name = "折扣券折扣")
    private BigDecimal discountRate;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private Long userId;

    /** 优惠券状态 */
    @Excel(name = "优惠券状态")
    private Long status;

    /** 关联订单ID */
    @Excel(name = "关联订单ID")
    private Long orderId;

    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }

    public void setCouponName(String couponName) 
    {
        this.couponName = couponName;
    }

    public String getCouponName() 
    {
        return couponName;
    }

    public void setDiscountType(Long discountType) 
    {
        this.discountType = discountType;
    }

    public Long getDiscountType() 
    {
        return discountType;
    }

    public void setFullAmount(BigDecimal fullAmount) 
    {
        this.fullAmount = fullAmount;
    }

    public BigDecimal getFullAmount() 
    {
        return fullAmount;
    }

    public void setReduceAmount(BigDecimal reduceAmount) 
    {
        this.reduceAmount = reduceAmount;
    }

    public BigDecimal getReduceAmount() 
    {
        return reduceAmount;
    }

    public void setDiscountRate(BigDecimal discountRate) 
    {
        this.discountRate = discountRate;
    }

    public BigDecimal getDiscountRate() 
    {
        return discountRate;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couponId", getCouponId())
            .append("couponName", getCouponName())
            .append("discountType", getDiscountType())
            .append("fullAmount", getFullAmount())
            .append("reduceAmount", getReduceAmount())
            .append("discountRate", getDiscountRate())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("userId", getUserId())
            .append("status", getStatus())
            .append("orderId", getOrderId())
            .toString();
    }
}
